package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
@author  LT
@create 2024-03-11-18:46
*/
@Mapper
public interface SysRoleMapper {
    List<SysRole> findByKeyword(@Param("keyword") String keyword);

    void addSysRole(@Param("sysRole") SysRole sysRole);

    SysRole findById(@Param("rid") Integer rid);

    void updateById(@Param("sysRole") SysRole sysRole);

    void deleteById(@Param("rid") Integer rid);

    List<SysRole> findAll();

    List<SysRole> findAllRoles(Integer userId);

}